<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddBusinessColumnToSandTablePolymerizeDotInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('sand_table_polymerize_dot_info', function (Blueprint $table) {
            $table->unsignedInteger('businessAoiId')->default(0)->comment('商圈ID');
            $table->index('businessAoiId', 'idx_businessAoiId');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('sand_table_polymerize_dot_info', function (Blueprint $table) {
            $table->dropColumn('businessAoiId');
        });
    }
}
